using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class XmlPage : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        CreateNewXml();
    }
    void CreateNewXml()
    {
        Xml xml = new Xml();
        xml.DocumentContent="<?xml version=\"1.0\""
        +" encoding=\"utf-8\" ?>"+
        "<customers>"+
	        "<customer>"+
		        "<name>USVNN</name>"+
		        "<id>HCM01</id>"+
		        "<phone>08-1234567</phone>"+
		        "<address>1232-California, USA</address>"+
		        "<email>admin@usvnn.com</email>"+
	        "</customer>"+
	        "<customer>"+
		        "<name>Saigon Infotech</name>"+
		        "<id>HCM02</id>"+
		        "<phone>08-7654321</phone>"+
		        "<address>37 Ton Duc Thang Dist"+
		        ". 1, HCM City</address>"+
		        "<email>admin@SaigonInfotech.com</email>"+
		        "</customer>"+
	        "<customer>"+
		        "<name>Recruit Vietnam</name>"+
		        "<id>HCM03</id>"+
		        "<phone>04-12342343</phone>"+
		        "<address>4 Marriott Ha Noi City</address>"+
		        "<email>admin@RecruitVietnam.com</email>"+
	        "</customer>"+
        "</customers>";        
        xml.TransformSource=MapPath("Customers.xsl");
              
        this.form1.Controls.Add(xml);
    }
}
